#include <stdio.h>
//1 turtle,2 rabbit
main() {
	int i=0,t,s1=0,s2=0,v1=3,v2=9,flag=0,j=1;
	scanf("%d",&t);
	while(i != t){
	//while(1){
		i++;
		if(flag==0){
			if(i%10==0&&s2>=s1){
			/*s1+=v1;
			s2+=v2;*/
			flag=1;
			}
			/*else{
				s1+=v1;
				s2+=v2;
			}*/
			s1+=v1;
			s2+=v2;
		}
		else{
			s1+=v1;
			j++;
			if(j==30){j=1;flag=0;}
		}
	
	}
	if(s1>s2){printf("turtle win\n");}
	else if(s1<s2){printf("rabbit win\n");}
	else{printf("draw\n");}
}